# -*- mode: python -*-

Import("env")

env.Library(
        target='key_generator',
        source=[
            '2d_key_generator.cpp',
            'btree_key_generator.cpp',
            'fts_key_generator.cpp',
            'hash_key_generator.cpp',
            'haystack_key_generator.cpp',
            'key_generator.cpp',
            's2_key_generator.cpp',
        ],
        LIBDEPS=[
            '$BUILD_DIR/mongo/bson',
            '$BUILD_DIR/mongo/db/fts/base',
            '$BUILD_DIR/mongo/geometry',
            '$BUILD_DIR/mongo/geoparser',
            '$BUILD_DIR/mongo/geoquery',
            '$BUILD_DIR/mongo/index_names',
            '$BUILD_DIR/third_party/s2/s2',
        ],
)

env.Library(
        target='external_key_generator',
        source=[
            'external_key_generator.cpp',
        ],
        LIBDEPS=[
            'key_generator',
            '$BUILD_DIR/mongo/bson',
        ],
)
